/* eslint-disable import/prefer-default-export */
import { request } from '@/request/v2';

// 消息列表
export const messageList = (payload) => {
  return request({
    method: 'GET',
    url: `https://www.thuguardian.com/api/user/message_list`,
    payload,
    codeIgnore: true,
  });
};


// 消息详情
export const messageDetail = (payload) => {
  return request({
    method: 'get',
    url: `https://www.thuguardian.com/api/user/message_detail`,
    payload,
    codeIgnore: true,
  });
};

// 未读消息数量
export const unreadNumbers = () => {
  return request({
    method: 'get',
    url: `https://www.thuguardian.com/api/user/unread_numbers`,
    codeIgnore: true,
  });
};